<me:UILS x:Class="WPFExcelReport.TDLS02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UILS.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:Divideby1000  x:Key="d1000"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UILS.Resources>
     <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0"> 
            <Button  Click="QueryCommand" Height="20" Margin="5,0,0,0" Width="24" >
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Search.png" />
                </Button.Background>
            </Button>
            <Button Click="ResetSeq" Content="{Binding Source={Localization:Translate Word=重置采购单}}"
                    Visibility="{Binding IsITX,Converter={StaticResource bv}}"/>
            <Button Click="LS0Command" Content="{Binding Source={Localization:Translate Word=0}}"  Width="80"/>

        </WrapPanel>
        <DataGrid  Grid.Row="1"  
                   MaxHeight="400"
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="True"
                   EnableRowVirtualization="False"
                   IsReadOnly="True"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HeadersVisibility="Column"     
                   ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgMaster"  
                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0,0,0"
                    >
            
        </DataGrid  >
    </Grid>
</me:UILS>
